# -*- coding: utf-8 -*-
"""
@Project: base_python
@File: reuqeststest.py
@Author: PC
@Date: 2025/06/17
@Description: 
"""
import requests

session = requests.Session()

params = {'username': 'username', 'password': 'password'}
s = session.post('http://pythonscraping.com/pages/cookies/welcome.php', params)
print('Cookie is set to:')
print(s.cookies.get_dict())
print('Going to profile page...')
s = session.get('http://pythonscraping.com/pages/cookies/profile.php')
print(s.text)
